import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        brands: [itf({
            id: 'string',
            name: 'string'
        })],
        isDealerUser: 'boolean',
    })
});
export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            code: 'string',
            brandCode: 'string',
            brandName: 'string',
            dealerCode: 'string',
            dealerName: 'string',
            invoiceCode: 'string',
            invoicedDate: 'datetime',
            status: 'number',
            claimType: 'number',
            currency: 'number',
            claimFee: 'number',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        code: 'string',
        branchCode: 'string',
        branchName: 'string',
        brandCode: 'string',
        brandName: 'string',
        dealerCode: 'string',
        dealerName: 'string',
        claimCode: 'string',
        claimCreateDate: 'datetime',
        claimFee: 'number',
        receivingDealerName: 'string',
        status: 'number',
        invoiceCode: 'string',
        invoicedDate: 'datetime',
        claimType: 'number',
        currency: 'number',
        receiptDate: 'datetime',
        rowVersion: 'string? | null',
        details: [
            itf({
                id: 'string',
                packingListCode: 'string',
                partSaleOrderCode: 'string',
                partCode: 'string',
                partName: 'string',
                claimAmount: 'number',
                price: 'number',
                claimFee: 'number',
                claimReason: 'number',
            })
        ],
    }))
});
